package edu.sctu.practice.class02.yangshengyu.text01.test08;



/**
 * Created by Cullen on 2015/10/16.
 */
public class Truck extends Vehicles{
    public Truck(String brand, String color) {
        super(brand, color);
    }


    public static float load=22;

    public static void showTruck(){
        Vehicles truck=new Vehicles("DDD","red");
        truck.showInfo();
        System.out.println("卡车的载重是："+load+"吨");
    }

    public static void main(String[] args) {
        showTruck();
    }


}
